import request from '@/utils/request'

// 创建转盘发送记录
export function createTurnInfo(data) {
  return request({
    url: '/qd/turn-info/create',
    method: 'post',
    data: data
  })
}

// 更新转盘发送记录
export function updateTurnInfo(data) {
  return request({
    url: '/qd/turn-info/update',
    method: 'put',
    data: data
  })
}

// 删除转盘发送记录
export function deleteTurnInfo(id) {
  return request({
    url: '/qd/turn-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得转盘发送记录
export function getTurnInfo(id) {
  return request({
    url: '/qd/turn-info/get?id=' + id,
    method: 'get'
  })
}

// 获得转盘发送记录分页
export function getTurnInfoPage(query) {
  return request({
    url: '/qd/turn-info/page',
    method: 'get',
    params: query
  })
}

// 导出转盘发送记录 Excel
export function exportTurnInfoExcel(query) {
  return request({
    url: '/qd/turn-info/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
